package com.dragon.logical.service.supplies;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.repository.entity.WarehouseInout;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 出入库 服务类
 * </p>
 *
 * @author sy
 * @since 2023-11-14
 */
public interface IWarehouseInoutService extends IService<WarehouseInout> {

    /**
     * 出入库分页
     * @param page
     * @param limit
     * @param inoutType
     * @param type
     * @param id
     * @return
     */
    Page<WarehouseInout> inoutList(Integer page, Integer limit, Integer inoutType, Integer type, Integer id);

    /**
     * 修改 子表
     * @param warehouseInout
     */
    void updateInout(WarehouseInout warehouseInout);

    /**
     * 确认出入库
     * @param id
     */
    void confirmInout(Integer id);

}
